package com.bytenebula.entity.meta;

import com.bytenebula.entity.core.TenantEntity;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;

import java.io.Serial;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;

/**
 *  实体类。
 *
 * @author patrick
 * @since 2024-09-15
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table(value = "meta_column", dataSource = "bytenebula")
public class MetaColumn extends TenantEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private String columnName;
    private Integer columnIndex;
    private String columnType;
    private Integer columnPrecious;
    private Integer columnScale;
    private String comment;
    private Integer tableId;
    private Integer isPk;
    private Integer isNullable;
    private String defaultValue;
}
